﻿@model IEnumerable<Mvc.HelpDesk.Models.IncidenteModel>
@{
    ViewBag.Title = "Index";
}
<h2>
    Index</h2>
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            Atendente
        </th>
        <th>
            Solicitante
        </th>
        <th>
            Sub Categoria
        </th>
        <th>
            Data de Abertura
        </th>
        <th>
            Data de Fechamento
        </th>
        <th>
            Status
        </th>
        <th>
            Prioridade
        </th>
        <th>
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.strNomeAtendente)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.strNomeSolicitante)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.strSubCategoria)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.DtAbertura)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.dtFechamento)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.strStatus)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.strPrioridade)
            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.IDINCIDENTE }) |
                @Html.ActionLink("Details", "Details", new { id = item.IDINCIDENTE }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.IDINCIDENTE })
            </td>
        </tr>
    }
</table>
